/*
 * scrape-config.js
 */

var params = window.arguments[0];

var ScraperConfig = {
	_log : new Logger("ScraperConfig"),

	load : function() {
		var folders = iForumDAO.getFolders();
		for (var i = 0; i < folders.length; i++) {
			var folder = folders[i];
			var item = $("folder-box").appendItem(folder.name, folder.id);
			if (folder.id == iForumDAO.default_folder_id) {
				$("folder-box").selectItem(item);
			}
		}
	},

	onOk : function() {
		params.folderid = $("folder-box").currentItem.value;
		return true;
	}
}